/**
 * 公共VO
 * PublicVoSuccess 成功
 * PublicVoError 失败
 */
import { ApiProperty } from '@nestjs/swagger';
export class PublicVoSuccess {
  @ApiProperty({ example: '200', description: '状态码', required: false })
  code: number;

  @ApiProperty({
    example: '请求成功',
    description: '请求消息',
    required: false,
  })
  msg: string;

  @ApiProperty({ example: 'success', description: '数据', required: false })
  data: string;
}

export class PublicVoError {
  @ApiProperty({ example: '500', description: '状态码', required: false })
  code: number;

  @ApiProperty({
    example: '请求失败',
    description: '请求消息',
    required: false,
  })
  msg: string;

  @ApiProperty({ example: 'error', description: '数据', required: false })
  data: string;
}
